package org.example.ch02.p15;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n=Integer.parseInt(scanner.nextLine());
        int oddCount=0;
        int evenCount=0;
        for (int i=1;i<=n;i++){
            if (i%3==0){
                if (i%2==0){
                    evenCount++;
                }else{
                    oddCount++;
                }
            }
        }
        System.out.println(evenCount+","+oddCount);
        scanner.close();
    }
}
